<template>
  <div class="audio-container">
    <audio
      controls
      controlslist="nodownload"
      autoplay
      @contextmenu="$event.preventDefault()"
      :src="fileUrl"
    >
      您的浏览器不支持此格式
    </audio>
  </div>
</template>

<script setup>
defineProps({
  fileUrl: { type: String, default: '' }
})
</script>

<style lang="less" scoped>
.audio-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
